package tianrun.ziguan.api.calculate.config.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

/**
 * 资产
 *
 * @author zhaoqi
 */
public class TCalAsset implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 资产编码
     */
    @TableField("asset_num")
    private String assetNum;

    /**
     * 资产名称
     */
    @TableField("asset_name")
    private String assetName;

    /**
     * 父级设备编码
     */
    @TableField("parent_asset_num")
    private String parentAssetNum;

    /**
     * 资产组id
     */
    @TableField("asset_group_id")
    private Long assetGroupId;

    /**
     * 模版id
     */
    @TableField("template_id")
    private Long templateId;

    /**
     * 是否有效；0无效，1有效
     */
    @TableLogic(value = "true",delval = "false")
    @TableField("is_valid")
    private Boolean isValid;

    /**
     * 虚拟资产的实际资产编号
     */
    @TableField("reference_asset_num")
    private String referenceAssetNum;
    /**
     * 是否虚拟资产   是true    否false
     */
    @TableField("virtual_flag")
    private Boolean virtualFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAssetNum() {
        return assetNum;
    }

    public void setAssetNum(String assetNum) {
        this.assetNum = assetNum;
    }

    public String getAssetName() {
        return assetName;
    }

    public void setAssetName(String assetName) {
        this.assetName = assetName;
    }

    public String getParentAssetNum() {
        return parentAssetNum;
    }

    public void setParentAssetNum(String parentAssetNum) {
        this.parentAssetNum = parentAssetNum;
    }

    public Long getAssetGroupId() {
        return assetGroupId;
    }

    public void setAssetGroupId(Long assetGroupId) {
        this.assetGroupId = assetGroupId;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }

    public String getReferenceAssetNum() {
        return referenceAssetNum;
    }
    public void setReferenceAssetNum(String referenceAssetNum) {
        this.referenceAssetNum = referenceAssetNum;
    }

    public Boolean getVirtualFlag() {
        return virtualFlag;
    }

    public void setVirtualFlag(Boolean virtualFlag) {
        this.virtualFlag = virtualFlag;
    }
}
